home *** CD-ROM | disk | FTP | other *** search
/ Sun Solutions 1997 April to September / Sun Solutions CD - APR '97 - SEP '97 (704-3778-12 Rev. H)(Sun Microsystems, Inc.)(1997).iso / products / bin / finish.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1997-02-28  |  2KB  |  79 lines

  1. #!/bin/sh 
  2. #
  3. #cmdtool $CD_MOUNT/find.sh
  4.  
  5. if [ "$NETSCAPE_CATALYST" != "" ]; then
  6. #$NETSCAPE_CATALYST -xrm "*useStderrDialog: False" -xrm "*strings.22130:This process will either Install, Remove, or Launch\na demo from the\nSun Solutions CD.\n\nProceed?\n" -geometry =665x770+100+0 $WWW_FIRST 2>&-
  7.  
  8. $NETSCAPE_CATALYST -geometry =665x770+100+0 -xrm "*strings.22130:This process will either Install, Remove, or Launch\na demo from \nSun Solutions CD.\n\nProceed?\n" $WWW_FIRST
  9. else
  10. $CD_MOUNT/products/bin/gui/$CDWARE_ENV/netscape -geometry =665x770+100+0 -xrm "*useStderrDialog: False" -xrm "*strings.22130:This process will either Install, Remove, or Launch\na demo from \nSun Solutions CD.\n\nProceed?\n" -geometry =665x770+100+0 $WWW_FIRST 2>&-
  11. fi
  12.  
  13. #
  14. # clean-up
  15. #
  16. if [ -w /dev/audio ]; then
  17.  
  18.   if [ "$CDWARE_ENV" != "Solaris_1"  ]; then
  19.         audioplay -i $CD_MOUNT/products/$disc_name/sounds/bye.au&
  20.   else
  21.         cat $CD_MOUNT/products/$disc_name/sounds/bye.au > /dev/audio&
  22.   fi
  23.  
  24. fi
  25.  
  26. # mail or print more information request
  27.  
  28. if [ -r /tmp/httpd/info.email ]; then
  29.      echo ""
  30.      echo "Mailing more information request..."
  31.      echo ""
  32.      echo "------------------------------" >> /tmp/httpd/info.email
  33.   /usr/ucb/mail -s "$disc_name Lead for Your Product" < /tmp/httpd/info.email emlts@cdware.sun.com 
  34. fi
  35. if [ -r /tmp/httpd/info.fax ]; then  
  36.      echo "------------------------------" >> /tmp/httpd/info.fax
  37.      echo "" >> /tmp/httpd/info.fax
  38.      echo "FAX US! at (415)786-4104" >> /tmp/httpd/info.fax
  39.      echo "" >> /tmp/httpd/info.fax
  40.      echo "------------------------------" >> /tmp/httpd/info.fax
  41.       /usr/ucb/lpr /tmp/httpd/info.fax
  42. fi
  43.  
  44.  
  45.  
  46. # kill httpd
  47.  
  48. kill -9 `cat /tmp/httpd/logs/httpd.pid`
  49.  
  50. #cleanup wais
  51.  
  52. if [ "$CDWARE_ENV" = "Solaris_1" ]; then
  53.      # Clean up wais stuff:kill wais, remove link
  54.  
  55.      echo ""
  56.      echo "Removing Wais server..."
  57.      echo ""
  58.     
  59.      kill $PID_CDROM
  60.      #kill $PID_CATALOG
  61. fi 
  62.  
  63. # remove httpd config
  64.  
  65. rm -rf /tmp/httpd
  66.  
  67. if [ "$dir_exist" = "1" ]; then
  68. #change
  69.   mv $HOME/.netscape/preferences.solutions $HOME/.netscape/preferences
  70. else 
  71.   rm -rf $HOME/.netscape
  72. fi
  73.  
  74. echo "" 
  75. echo "" 
  76.  
  77.  
  78. exit 0
  79.